package modelLayer;

public class Staff {
	private int ID;
	private String name;
	private int cprNo;
	private String email;
	
	public Staff(int iD, String name, int cprNo, String email) {
	
		super();
		ID = iD;
		this.name = name;
		this.cprNo = cprNo;
		this.email = email;
	
	}
	
	public Staff () {
		
	}

	public int getID() {
		return ID;
	}

	public boolean setID(int newID) {
		this.ID = newID;
		if (this.ID == newID) {
			return true;
		}
		else {
			return false;
		}
	}

	public String getName() {
		return name;
	}

	public boolean setName(String name) {
		this.name = name;
		if (this.name == name) {
			return true;
		}
		else {
			return false;
		}
	}

	public int getCprNo() {
		return cprNo;
	}

	public boolean setCprNo(int cprNo) {
		this.cprNo = cprNo;
		if (this.cprNo == cprNo) {
			return true;
		}
		else {
			return false;
		}
	}

	public String getEmail() {
		return email;
	}

	public boolean setEmail(String email) {
		this.email = email;
		if (this.email == email) {
			return true;
		}
		else {
			return false;
		}
	}

	@Override
	public String toString() {
		return "Staff [ID=" + ID + "]";
	}
}
